namespace Example
{
    using System;
    using SimpleWebServices;
    using SimpleWebServices.Web.UI;
    using Xunit;

    public sealed class DefaultAspxFacts
    {
        [Fact]
        public void typedef()
        {
            Assert.True(new ObjectExpectations<_Default>()
                .DerivesFrom<DefaultPage>()
                .IsConcreteClass()
                .IsUnsealed()
                .HasDefaultConstructor()
                .Result);
        }

        [Fact]
        public void ctor()
        {
            Assert.NotNull(new _Default());
        }

        [Fact]
        public void op_Page_Load_objectNull_EventArgsEmpty()
        {
            Assert.Throws<NullReferenceException>(() => new _Default().Page_Load(null, EventArgs.Empty));
        }
    }
}